<?php
$di = \Phalcon\Di::getDefault();
$nodeContentType = $di->getShared('entityManager')->contentModelOptions('node');
if (isset($nodeContentType['book'])) {
    unset($nodeContentType['book']);
}
return [
    'enableBook' => [
        'label' => '启用书本',
        'description' => '哪些内容类型的新闻可以被编入书本目录',
        'widget' => 'Select',
        'options' => $nodeContentType,
        'default' => 0,
        'error' => '',
        'validate' => [],
        'attributes' => [
            'class' => 'form-control',
        ],
    ],
];